*{
  padding: 0;
  margin: 0;
}
html,body{
  position: relative;
  width: 100%;
  height: 100%;
  font-size: 0.729vw;// 1rem = 10px
}
body{
  //background-image: linear-gradient(330deg, rgba(6, 73, 144, 0.7) 0%, rgba(12, 161, 240, 0.7) 100%);
  background: #fff;
}
.index-body{
  height: auto;
  background-image: none;
}
#app{
  position: relative;
  width: 100%;
  height: 100%;
}
:root {
  --primary-color: #0674f5;
  --primary-color-light: #2576f5;
  --ai-color-high: #BD3124;
  --ai-color-high-hover: #9a281e;
}
.fb{
  font-family: PingFangSC-bold;
  font-weight: 700;
}
.high-span{
  position: relative !important;
}
.high-btn{
  position: relative;
  height: 32px;
  line-height: 32px;
  padding: 0px 15px;
  color: #fff;
  background: var(--ai-color-high);
  border-radius: 4px;
  font-size: 1.4rem;
  display: inline-block;
  cursor: pointer;
  &:hover{
    background: var(--ai-color-high-hover);
  }
}
.flex{
  display: flex;
}
.just-between{
  justify-content: space-between;
}
.align-center{
  align-items: center;
}
.el-tag{
  background-color: rgb(85,149,197) !important;
  color: var(--el-text-color-secondary) !important;
  .el-tag__close:hover{
    background-color: rgb(62, 107, 141) !important;
  }
}
.is-current>.el-tree-node__content {
  background-color: var(--el-tree-node-hover-bg-color);
}
.el-tooltip__trigger{
  &:focus-visible{
    outline: none !important;
    border: none !important;
  }
}
.record-page{
  .el-tabs__item{
    font-size: 16px;
    font-weight: bold;
  }
}
.think-tank-page{
  .el-progress-bar__outer{
    background-color: rgb(85,149,197);
    overflow: unset;
  }
  .el-progress-bar__innerText{
    background-color: var(--el-text-color-secondary);
    color: var(--el-color-primary);
    border-radius: 10px;
    padding: 2px 5px;
    margin: -8px 0 0;
  }
}
.circle-input{
  .el-input__wrapper{
    border-radius: 30px;
  }
}
.underline-input{
  .el-input__wrapper,.el-input__wrapper:hover,.el-input__wrapper.is-focus{
    border-top: none;
    border-left: none;
    border-right: none;
    background: none;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--primary-color);
  }
}

@-webkit-keyframes loading-rotate {
  0%{
    -webkit-transform: rotate3d(0, 0, 1, 0deg);
  }
  100%{
    -webkit-transform: rotate3d(0, 0, 1, 360deg);
  }
}
@keyframes loading-rotate {
  0%{
    transform: rotate3d(0, 0, 1, 0deg);
  }
  100%{
    transform: rotate3d(0, 0, 1, 360deg);
  }
}
.loading{
  display: inline-block;
  animation: loading-rotate 1s linear infinite;
}
@media only screen and (max-width: 1080px) {
  .header-wrapper{
    height: 5.6rem !important;
    .logo-title{
      font-size: 2.2rem !important;
    }
    .link-btn{
      font-size: 2.2rem !important;
    }
  }
}
@media only screen and (max-width: 720px) {
  .header-wrapper{
    height: 6.6rem !important;
    .logo-title{
      font-size: 2.8rem !important;
    }
    .link-btn{
      font-size: 2.8rem !important;
    }
  }
}
.scrollbar-y{
  overflow-y: hidden;
  //scrollbar-width: thin;
  //scrollbar-color: rgba(0,0,0,0.2) rgba(0,0,0,0.1);
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  &:hover{
    overflow-y: overlay;
  }
  &::-webkit-scrollbar {
    width: 5px; // 设置成0滚动条会因为设置了scrollTop暂歇性的无法滚动
  }
  /* 设置滚动条背景色 */
  &::-webkit-scrollbar-track{
    //background: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0);
    border-radius: 3px;
  }
  /*滚动条里面小方块背景色*/
  &::-webkit-scrollbar-thumb {
    //background:rgba(0,0,0,0.3);
    background:rgba(0,0,0,0);
    border-radius: 3px;
  }
}
.el-header .menu-box, .el-footer .footer-content, .record-page{
  width: 70%;
  margin: auto;
}
.index-body::-webkit-scrollbar {
  width: 0px;
}
.my-upload-item{
  position: relative;
  input{
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    top:0;
    left:0;
    z-index: 1;
  }
}
.link-btn{
  color: #fff;
  font-family: PingFangSC-bold;
  font-size: 1.2rem;
  padding: 0 5px;
  cursor: pointer;
}
.gradient-text{
  color: transparent;
  -webkit-background-clip: text;
}
.ai-text{
  ul, ol{
    padding-left: 2rem;
  }
}
.header-search-input{
  .el-input__wrapper{
    border-radius: 30px;
    //background-color: #f4f5f7;
  }
}
.search-history-card{
  .el-card__body{
    height: 100%;
    padding-top: 0;
    padding-bottom: 0;
    @extend .scrollbar-y;
  }
}
.search-chat-card{
  .el-card__body{
    height: 100%;
    padding: 0;
    //background: #f4f5f7;
    .answer-content{
      @extend .scrollbar-y;
    }

  }
}
.ai-search-page{
  .input-box{
    .el-textarea__inner{
      padding: 0.5rem 0.5rem 3.6rem 0.5rem;
      box-sizing: border-box;
    }
  }
}
.sci-hot-page{
  .hot-list{
    @extend .scrollbar-y;
  }
}
.pcenter-page{
  .form-card{
    .el-card__body{
      height: calc(100% - 110px);
      @extend .scrollbar-y;
    }
  }
}
.think-tank-page{
  .el-tree-node__content{
    height: 2.4rem;
    border-radius: 3px;
  }
}

$avatar-bg-size: 3.4rem;
.card-header{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  .card-title{
    font-size: 1.2rem;
  }
  .conditions{
    position: relative;
    display: flex;
    align-items: center;
    span{
      white-space: nowrap;
    }
    .el-select{
      width: 140px;
      margin-right: 20px;
    }
  }
}
.success-text{
  color: var(--el-color-primary);
}
.grey-text{
  color: var(--el-text-color-disabled);
}
.error-text{
  color: var(--el-color-error);
}
.token-text{
  white-space: pre-wrap;
  word-break: break-all;
}
.el-scrollbar__bar.is-horizontal{
  height: 10px !important;
}

